import Theme from "vitepress/theme"
import QingDesign from "qing-design"
import "qing-design/theme-chalk/css/index.css"
import './style/var.css'
import './style/page.css'
import "./style/style.scss"
// import { h } from "vue";
// import AnimationTitle from "../vitepress/components/home/animation-title.vue"
import vpCompoments from "../vitepress"
// import {
//   QIcon,
//   QButton,
//   QTree,
//   QForm,
//   QInput,
//   QFormItem,
//   QUpload,
//   QVirtualScrollList,
//   QCalendar
// } from '@qing-design/components'
// import "@qing-design/theme-chalk/src/index.scss"
// const myComponents = [QIcon, QButton, QTree, QForm, QInput, QFormItem, QUpload, QVirtualScrollList, QCalendar]


export default {
  ...Theme,
  // Layout() {
  //   return h(Theme.Layout, null, {
  //     "home-hero-info": () => h(AnimationTitle)
  //   })
  // },
  enhanceApp({ app }) {
    app.use(QingDesign)
    // myComponents.forEach(item => {
    //   app.use(item)
    // })

    vpCompoments.forEach(item => {
      app.use(item);
    })

  }
}